#ifndef _MYLED_H
#define _MYLED_H

#include <arduino.h>

class Led{
  public:
    Led();
    Led(int userLedPin);
    ~Led();
    void on();
    void off();
    int getLedPin();
    void setLedPin(int userLedPin);

  private:
    int ledPin = 2;
};

class PwmLed : public Led{
  public:
    void on(int userPwmValue);
    int getPwmVal();
  private:
    int pwmVal = 0;
};

#endif
